home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / split60g.zip / SPLTGPAT.BAT < prev   
DOS Batch File  |  1994-02-26  |  2KB  |  77 lines

  1. echo off
  2. cls
  3. echo.
  4.  
  5. echo Uses DEBUG.COM to patch SPLIT v6.0g from "CTL" to "¢T£" control extension.
  6. echo.
  7. if %1' == ' goto info
  8. if exist %1.exe goto continue
  9.  
  10. :nofiles
  11. echo One or more files are missing!
  12. echo.
  13. echo   "DEBUG.COM"  and  "%1.exe"  must be present on your system.
  14. echo.
  15. goto info
  16.  
  17. :continue
  18.  
  19. dir %1.exe
  20. echo.
  21. echo If "%1.exe" is not 22847 bytes long, you should quit NOW!!
  22. echo.
  23. echo Press "Ctrl-Break"  key NOW if you wish to terminate this action.
  24. echo (Any other key will allow the modification of "%1.exe"):
  25. echo.
  26. pause
  27.  
  28. echo e2480 >modsplit.scr
  29. echo 9b  9c >>modsplit.scr
  30. echo e5491 >>modsplit.scr
  31. echo 1c f9   03 0a >>modsplit.scr
  32. echo n%1.new >>modsplit.scr
  33. echo w >>modsplit.scr
  34. echo q >>modsplit.scr
  35.  
  36. if not exist modsplit.scr goto nofiles
  37.  
  38. ren %1.exe %1.xxe
  39. debug %1.xxe < modsplit.scr
  40. ren %1.xxe %1.exe
  41. if not exist %1.new goto nofiles
  42.  
  43. :finish
  44. del modsplit.scr
  45.  
  46. if not exist %1.exe goto nofiles
  47. if exist %1.olx del %1.olx
  48. ren %1.exe %1.olx
  49. if exist %1.olx echo Original "%1.exe" was saved as "%1.olx"
  50. if exist %1.new ren %1.new %1.exe
  51. echo:
  52.  
  53. echo done.
  54. goto end
  55.  
  56. :info
  57. echo   SPLIT.EXE now uses ".CTL" instead of ".¢T£" as the extension of
  58. echo   its control file.  This was done due to problems some systems
  59. echo   and programs had with high-bit characters in filenames. SPLIT
  60. echo   versions back to v5.19 are compatible with the ".CTL" extension.
  61. echo.
  62. echo   If the new ".CTL" extension conflicts with other files on your
  63. echo   system using that extension, you may patch SPLIT.EXE with this
  64. echo   batch file to return to ".¢T£" as the control file extension.
  65. echo.
  66. echo   SYNTAX:   %0 prog
  67. echo.
  68. echo   "prog" = basename (no extension) of the SPLIT.EXE you are modifying.
  69. echo.
  70. echo   Example:  "%0 split"  patches "split.exe" to make
  71. echo   control files with ".¢T£" instead of ".CTL" extension.
  72. echo.
  73. echo Caution:  1) Save your original copy of SPLIT.EXE.
  74. echo -------   2) This batch file works ONLY with SPLIT v6.0g!!!!
  75. :end
  76. echo.
  77.